package l2hc.gameserver.network.loginservercon.lspackets;

import l2hc.gameserver.network.GameClient;
import l2hc.gameserver.network.loginservercon.LoginServerCommunication;
import l2hc.gameserver.network.loginservercon.ReceivablePacket;

public class PointConnectionGS extends ReceivablePacket
{
	
	private int point;
	private String acc;
	
	@Override
	protected void readImpl()
	{
		acc = readS();
		point = readD();
	}
	
	@Override
	protected void runImpl()
	{
		GameClient client = LoginServerCommunication.getInstance().getAuthedClient(acc);
		if(client != null)
			client.setPointG(point);
	}
}